package Collection.Map;

public class HashCode {
    public static void main(String[] args) {
        Integer a = 500;
        Integer b = 500;
        System.out.println(a.hashCode() + " " + b.hashCode());
        System.out.println(Integer.hashCode(a) + " " + Integer.hashCode(b));
        System.out.println(System.identityHashCode(a) + " " + System.identityHashCode(b));
        String test1 = new String("噶");
        String test2 = new String("噶");
        System.out.println(test1.hashCode() + " " + test2.hashCode());
        System.out.println(test1 == test2);
        System.out.println(System.identityHashCode(test1) + " " + System.identityHashCode(test2));
    }
}
